flask link stylesheet

47

how to add css in flask app -

<link rel= "stylesheet" type= "text/css" href= "{{ url_for('static',filename='styles/mainpage.css') }}">

flask link stylesheet -

<link rel="stylesheet" href="{{ url_for('static', filename='css/main.css') }}">

linking custom CSS in flask -

{% block styles %}
{{super()}}
<link rel="stylesheet"
      href="{{url_for('.static', filename='mystyle.css')}}">
{% endblock %}

Comments

Submit
0 Comments